package org.smart4j.framework.helper;

import cn.wenxin_zhang.smart4j.plus.helper.DBHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.smart4j.framework.utils.ClassUtil;

/**
 * Created by Wenxin on 2017/2/25.
 */
public class HelperLoader {

    private static Logger LOGGER = LoggerFactory.getLogger(HelperLoader.class);

    public static void init() {
        Class<?>[] classList = {
                ClassHelper.class,
                BeanHelper.class,
                AOPHelper.class,
                DBHelper.class,
                IocHelper.class,
                ControllerHelper.class
        };

        for (Class<?> cls : classList) {
            ClassUtil.loadClass(cls.getName());
        }

        LOGGER.debug("the size of bean container is: {}",BeanHelper.getBeanMap().size());
    }


}
